﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;

namespace CPlase
{
    public class SerializableTableEntity<T> : TableServiceEntity
    {
        public string Serialize()
        {
            return BlobUtils.Serialize(this);
        }

        public static T Deserialize(string MessageString)
        {
            return BlobUtils.Deserialize<T>(MessageString);
        }
    }

    public class Serializable<T>
    {
        public string Serialize()
        {
            return BlobUtils.Serialize(this);
        }

        public static T Deserialize(string MessageString)
        {
            return BlobUtils.Deserialize<T>(MessageString);
        }
    }
}